#编写一个Python程序，实现快速排序。
import os


def quickSort(arr):
    if len(arr) <= 1:
        return arr
    pivot = arr[len(arr) // 2]
    left = [x for x in arr if x < pivot]
    middle = [x for x in arr if x == pivot]
    right = [x for x in arr if x > pivot]
    return quickSort(left) + middle + quickSort(right)
path = r"D:\PycharmProjects\Source\src"
for i in range(1,6):
    name = f'{i}day'
    rename =f'day{i}'
    filePath = os.path.join(path,name)
    tarfilePath = os.path.join(path,rename)
    os.rename(filePath,tarfilePath)

